package com.sddongyun.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created by lenovo on 2019/6/18.
 */
@Configuration
public class JHConfig {
    //商户代码
    @Value("${jhpay.merchantid}")
    private String MERCHANTID;
    //商户柜台号
    @Value("${jhpay.posid}")
    private String POSID;
    //分行代码
    @Value("${jhpay.branchid}")
    private String BRANCHID;
    //交易币种
    @Value("${jhpay.curcode}")
    private String CURCODE;
    @Value("${jhpay.baseurl}")
    private String BASEURL;
    @Value("${jhpay.proxurl}")
    private String proxurl;
    @Value("${jhpay.userid}")
    private String userid;
    @Value("${jhpay.pwd}")
    private String pwd;
    @Value("${jhpay.socketServer}")
    private String socketAddress;
    @Value("${jhpay.socketPort}")
    private int socketPort;

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getSocketAddress() {
        return socketAddress;
    }

    public void setSocketAddress(String socketAddress) {
        this.socketAddress = socketAddress;
    }

    public int getSocketPort() {
        return socketPort;
    }

    public void setSocketPort(int socketPort) {
        this.socketPort = socketPort;
    }

    public String getProxurl() {
        return proxurl;
    }

    public void setProxurl(String proxurl) {
        this.proxurl = proxurl;
    }

    public String getBASEURL() {
        return BASEURL;
    }

    public void setBASEURL(String BASEURL) {
        this.BASEURL = BASEURL;
    }

    public String getPUB() {
        return PUB;
    }

    public void setPUB(String PUB) {
        this.PUB = PUB;
    }

    @Value("${jhpay.pub}")
    private String PUB;

    public String getMERCHANTID() {
        return MERCHANTID;
    }

    public void setMERCHANTID(String MERCHANTID) {
        this.MERCHANTID = MERCHANTID;
    }

    public String getPOSID() {
        return POSID;
    }

    public void setPOSID(String POSID) {
        this.POSID = POSID;
    }

    public String getBRANCHID() {
        return BRANCHID;
    }

    public void setBRANCHID(String BRANCHID) {
        this.BRANCHID = BRANCHID;
    }

    public String getCURCODE() {
        return CURCODE;
    }

    public void setCURCODE(String CURCODE) {
        this.CURCODE = CURCODE;
    }
}
